#include "ManEthernet.h"
#include "Main_constant.h"


BOOL ManEthernet::SetParam(WORD memId, Ndata* pSrcParam) {

	return false;
}

BOOL ManEthernet::GetParam(WORD memId, Ndata* pDstParam) {

	switch (memId)
	{
		//class
	case 0: {
		pDstParam->SetDataBody(STR_TYPE, "Ethernet", 16);
		break;
	}
	 //ip
	case 1: {
		pDstParam->SetDword(0x00A8);
		break;
	}
	 //port
	case 2: {
		pDstParam->SetDvb(Int2Dvb(1660));
		break;
	}//x1
	case 3: {
		pDstParam->SetDvb(0);
		break;
	}//x2
	case 4: {
		pDstParam->SetDvb(0);
		break;
	}
	 //serverAddr
	case 5: {
		pDstParam->SetDataBody(STR_TYPE, "192.168.0.168", 16);
		break;
	}
		  //hotState
	case 6: {
		pDstParam->SetWord(0x01);
		break;
	}
	//hotClientAddr
	case 7: {
		pDstParam->SetDataBody(STR_TYPE, "192.168.0.7", 16);
		break;
	}
	default:
		break;
	}
	return true;
}